//
//  ViewController.m
//  NBAApp
//
//  Created by 刘意明 on 16/11/29.
//  Copyright © 2016年 Manito. All rights reserved.
//

#import "ViewController.h"
#import "BaseRequest.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    //导航条上的按钮
    self.view.backgroundColor=[UIColor yellowColor];
    UIBarButtonItem *right =[[UIBarButtonItem alloc] initWithTitle:@"aa" style:UIBarButtonItemStylePlain target:self action:@selector(bt:)];
    self.navigationItem.rightBarButtonItem=right;
    
    
//    BaseRequest *aa =[[BaseRequest shareInstance] startGetWithURL:<#(NSString *)#> params:<#(NSDictionary *)#> success:<#^(id success)seccessBass#> failure:<#^(id failure)FailureBlock#>]
    
    
}
//触发事件
- (void)bt:(UIBarButtonItem *)btn {

}
//视图将要出现
-(void)viewWillAppear:(BOOL)animated
{
    
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
    self.navigationItem.hidesBackButton = YES;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
